import request from '@/utils/request'

// 查询销售出库列表
export function listErpOutbound(query) {
  return request({
    url: '/erp/ErpOutbound/list',
    method: 'get',
    params: query
  })
}

// 查询销售出库详细
export function getErpOutbound(outboundId) {
  return request({
    url: '/erp/ErpOutbound/' + outboundId,
    method: 'get'
  })
}

// 新增销售出库
export function addErpOutbound(data) {
  return request({
    url: '/erp/ErpOutbound',
    method: 'post',
    data: data
  })
}

// 修改销售出库
export function updateErpOutbound(data) {
  return request({
    url: '/erp/ErpOutbound',
    method: 'put',
    data: data
  })
}

// 删除销售出库
export function delErpOutbound(outboundId) {
  return request({
    url: '/erp/ErpOutbound/' + outboundId,
    method: 'delete'
  })
}

// 收货
export function updateErpOutboundHarvest(data) {
  return request({
    url: '/erp/ErpOutbound/harvest',
    method: 'put',
    data: data
  })
}
